set cwd=%~dp0

set dist=%cwd%..\lib\datax
rmdir /s /q %dist%
mkdir %dist%

pushd ..\..\..\datax-cloud

copy datax-eureka\target\*.jar %dist%
copy datax-config\target\*.jar %dist%
copy datax-auth\target\*.jar %dist%
copy datax-gateway\target\*.jar %dist%

copy datax-modules\system-service-parent\system-service\target\*.jar %dist%
copy datax-modules\quartz-service-parent\quartz-service\target\*.jar %dist%
copy datax-modules\workflow-service-parent\workflow-service\target\*.jar %dist%

copy datax-modules\data-metadata-service-parent\data-metadata-service\target\*.jar %dist%
copy datax-modules\data-metadata-service-parent\data-metadata-service-console\target\*.jar %dist%

copy datax-modules\data-standard-service-parent\data-standard-service\target\*.jar %dist%
copy datax-modules\data-quality-service-parent\data-quality-service\target\*.jar %dist%

copy datax-modules\data-market-service-parent\data-market-service\target\*.jar %dist%
copy datax-modules\data-market-service-parent\data-market-service-mapping\target\*.jar %dist%
copy datax-modules\data-market-service-parent\data-market-service-integration\target\*.jar %dist%

copy datax-modules\data-masterdata-service-parent\data-masterdata-service\target\*.jar %dist%
copy datax-modules\data-visual-service-parent\data-visual-service\target\*.jar %dist%

xcopy /s /i datax-ui\dist\ %cwd%..\..\nginx\lib\nginx\datax

popd

pause
